Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to deploy linux wheel to S3 on release. #1745

Merged
merged 1 commit into from
Jan 9, 2015

Conversation

rhyolight
Copy link
Member

Fixes #1744.

@rhyolight
Copy link
Member Author

@oxtopus Please review. I've tested the deploy script locally, but will have to push a release to test in Travis-CI.

@@ -32,11 +34,12 @@ sudo pip install twine || exit
echo "Creating distribution files..."
# This release build creates the source distribution. All other release builds
# should not.
python setup.py sdist bdist || exit
python setup.py sdist bdist bdist_wheel || exit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use twine below in lieu of python setup.py sdist bdist bdist_wheel upload ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following the recommendation of the official Python Packaging Guide.

(Recommended): Use twine

twine upload dist/*

The biggest reason to use twine is that python setup.py upload (option # 2 below) uploads files over plaintext. This means anytime you use it you expose your username and password to a MITM attack. Twine uses only verified TLS to upload to PyPI protecting your credentials from theft.

@oxtopus
Copy link
Contributor

oxtopus commented Jan 9, 2015

👍

rhyolight added a commit that referenced this pull request Jan 9, 2015
Script to deploy linux wheel to S3 on release.
@rhyolight rhyolight merged commit 1f6f8d7 into numenta:master Jan 9, 2015
@rhyolight rhyolight deleted the release-linux-wheel-s3 branch January 9, 2015 21:09
mihail911 pushed a commit to mihail911/nupic that referenced this pull request Aug 5, 2015
Script to deploy linux wheel to S3 on release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux wheels deploy to S3 on release
2 participants